#include<bits/stdc++.h>
using namespace std;
int main()
{
	double r;
	cin>>r;
	cout<<fixed<<setprecision(2);
	cout<<4*3.14*r*r<<endl<<4.0/3*3.14*r*r*r;
    return 0;
}

